package cn.zzuli.manager.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zzuli.common.utils.PageUtils;
import cn.zzuli.common.utils.Query;

import cn.zzuli.manager.dao.UserNewsDao;
import cn.zzuli.manager.entity.UserNewsEntity;
import cn.zzuli.manager.service.UserNewsService;


@Service("userNewsService")
public class UserNewsServiceImpl extends ServiceImpl<UserNewsDao, UserNewsEntity> implements UserNewsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserNewsEntity> page = this.page(
                new Query<UserNewsEntity>().getPage(params),
                new QueryWrapper<UserNewsEntity>()
        );

        return new PageUtils(page);
    }

}